#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>

namespace ServerMsgViewer {
class WebSocketClient;
}

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow {

    Q_OBJECT

public:
    explicit MainWindow(QWidget* parent = 0);
    ~MainWindow();
    
    
private:
    void configBtn();
    void connectToServer();
    
private slots:
    void onConnected();
    void onDisconnected();
    void onMsg(QString msg);
    

private:
    Ui::MainWindow* ui;
    ServerMsgViewer::WebSocketClient* wssClient;
};

#endif // MAINWINDOW_H
